home *** CD-ROM | disk | FTP | other *** search
- -- card: 2936 from stack: in
- -- bmap block id: 3220
- -- flags: 0000
- -- background id: 2738
- -- name:
-
-
- -- part 1 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=77 top=75 right=96 bottom=179
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Re-Index
- ----- HyperTalk script -----
- on mouseUp
- --this is the new button
- global a,b,x,y
- play boing c5
- put "Sorting Reference Cards . . . Please Wait" into message
- put empty into card field 1
- put empty into card field 2
- set the cursor to 4
- sort text by field 2
- play boing d4
- put "Getting Keywords . . . Please Wait" into message
- put the number of cards into x
- put the number of cards into y
- divide x by 2
- put trunc(x) into a
- subtract a from y
- repeat for a
- go next
- get field 2
- put it & return into last line of card field 1 of card 1
- end repeat
- repeat for y
- go next
- get field 2
- put it & return into last line of card field 2 of card 1
- end repeat
- go card 1
- put "Compacting Stack . . . Please Wait" into message
- doMenu "Compact Stack"
- put "Done" into message
- wait 2 seconds
- hide message
- end mouseUp
-
-
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=76 top=48 right=69 bottom=178
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Update
- ----- HyperTalk script -----
- on mouseUp
- choose button tool
- get the loc of card button 1
- click at it
- doMenu "Copy Button"
- go card 1 of "Programmer's Notebook"
- get the loc of card button "Re-Index"
- click at it
- doMenu "Clear Button"
- doMenu "Paste Button"
- choose browse tool
- show msg
- put "There ya go…" into msg
- wait 2 seconds
- hide msg
- end mouseUp
-
-
-